<template>
 <div class='login'>
        <Loginpc  v-if="!isshow" />
        <Loginmob  v-if="isshow" />
 </div>
</template>

<script>
import Loginpc from './loginpc.vue'
import Loginmob from './loginmob.vue'
   export default {
      data() {
          return {
              isshow:true
          }
      },
      //生命周期 - 创建完成
     created(){ 
         	let w = document.documentElement.offsetWidth || document.body.offsetWidth;
         if(w < 750){
          this.isshow = true;
        }else{
          this.isshow=false
            }
     },

     //DOM挂载完毕
     mounted() {

     },
     components:{
         Loginpc,
         Loginmob
     },
      methods: {


      },
 }
</script>

<style lang='less' scoped>

</style>